package cc.rboot._core.exception;


public class BizException extends RuntimeException {

    private int code = -1;
    private String errMsg = "";

    public BizException() {
        super();
    }

    public BizException(int code, String errMsg) {
        super(errMsg);
        this.code = code;
        this.errMsg = errMsg;
    }

    public BizException(String errMsg) {
        super(errMsg);
        this.errMsg = errMsg;
    }

    @Override
    public Throwable fillInStackTrace() {
        return this;
    }

    public int getCode() {
        return code;
    }

    public String getErrMsg() {
        return errMsg;
    }
}
